package model

import (
	"github.com/comfygpt-backend-go/common/database"
)

var _ ComponentsModel = (*customComponentsModel)(nil)

type (
	// ComponentsModel is an interface to be customized, add more methods here,
	// and implement the added methods in customComponentsModel.
	ComponentsModel interface {
		componentsModel
	}

	customComponentsModel struct {
		*defaultComponentsModel
	}
)

// NewComponentsModel returns a model for the database table.
func NewComponentsModel(db *database.GormDao, cache *database.DcRedisClient) ComponentsModel {
	return &customComponentsModel{
		defaultComponentsModel: newComponentsModel(db, cache),
	}
}
